package com.gxa.ssm251.pojo;

//import com.alibaba.fastjson.annotation.JSONField;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Set;

@Data  //get set tostring
@AllArgsConstructor  //全参构造
@NoArgsConstructor   //无参构造
public class UserSet implements Serializable {
    private Integer id;
    private String name;
    private String phone;
    @JSONField(format = "YYYY-MM-dd")
    private Date brith;
    private String sex;
    @JSONField(format = "YYYY-MM-dd HH:mm:ss")
    private java.sql.Date regTime;
//    private Integer balance;

    private Set<Cp> cpSet;

    public UserSet(String name){
        this.name=name;
    }
    public UserSet(String name, String phone){
        this.name=name;
        this.phone=phone;
    }


}
